package com.dxy.yesas2020goals.study.partone.disignpattern.reposibilitypattern.simple;

/**
 * @author victorydeng
 * @Classname AuthHandler
 * @Description TODO
 * @Date 2020/5/13 10:15
 * @Created by victorydeng
 */
public class AuthHandler extends Handler {
    @Override
    void doHandler(Member member) {
        if("管理员".equalsIgnoreCase(member.getRoleName())){
            System.out.println("有管理员权限，可以执行任意操作");
        } else {
            System.out.println("没有权限操作");
        }
    }
}
